﻿' LibWowArmory
' by Ronald M. Clifford (roncli@roncli.com)
'
' This source code is released under the GNU Library General Public License (LGPL) Version 2.1.

Imports System.Collections.Generic
Imports System.Xml.Serialization

Namespace roncliProductions.LibWowArmory.ItemSearchSchema

    Public Class item

        Private strIcon As String
        Private intID As Integer
        Private strName As String
        Private intRarity As Integer
        Private strURL As String
        Private ifFilter As New List(Of item_filter)

        <XmlAttribute()> Public Property icon() As String
            Get
                Return strIcon
            End Get
            Set(ByVal value As String)
                strIcon = value
            End Set
        End Property

        <XmlAttribute()> Public Property id() As Integer
            Get
                Return intID
            End Get
            Set(ByVal value As Integer)
                intID = value
            End Set
        End Property

        <XmlAttribute()> Public Property name() As String
            Get
                Return strName
            End Get
            Set(ByVal value As String)
                strName = value
            End Set
        End Property

        <XmlAttribute()> Public Property rarity() As Integer
            Get
                Return intRarity
            End Get
            Set(ByVal value As Integer)
                intRarity = value
            End Set
        End Property

        <XmlAttribute()> Public Property url() As String
            Get
                Return strURL
            End Get
            Set(ByVal value As String)
                strURL = value
            End Set
        End Property

        <XmlElement()> Public Property filter() As List(Of item_filter)
            Get
                Return ifFilter
            End Get
            Set(ByVal value As List(Of item_filter))
                ifFilter = value
            End Set
        End Property

    End Class

End Namespace